<!DOCTYPE html>
<html lang="en">
	<head>
		<meta charset="UTF-8">
		<title>广告管理</title>
		<link rel="stylesheet" href="__CSSB__/reset.css">
		<link rel="stylesheet" href="__CSSB__/advadd.css">
		<link rel="stylesheet" href="__CSSB__/advdeal.css">
		<link rel="stylesheet" href="__CSSB__/apa.css">
		<link rel="stylesheet" href="__CSSB__/boxdeal.css">
		<link rel="stylesheet" href="__CSSB__/advadd.css">
		<link rel="stylesheet" href="__CSSB__/boxdeal.css" />
		<link rel="stylesheet" href="__CSSB__/advdeal.css">
		<link rel="stylesheet" href="__CSSB__/reset.css">
		<link rel="stylesheet" href="__CSSB__/apa.css">
		<link rel="stylesheet" href="__CSSB__/bootstrap.min.css">
	</head>
	<body>
		<!-- O组头部 -->
		<body style="display: block;margin: 0;">
			<!--  O组 1912080222 -->
			<div class="top">
				<div class="top1">
				</div>
			<div>
				<li>
					{if (session('uNickB'))!=''}
						<div class="top1">
							<img  class="top2" src="__IMGB__/mv.jpg">
							<div>O论坛后台管理</div>
						</div>
					{/if}
				</li>
				<li><a href="{:url('deal/mesdeal',['sid' => 0])}">帖子管理</a></li>
				<li><a href="{:url('deal/userdeal')}">用户管理</a></li>
		        <li><a href="{:url('deal/secdeal')}">板块管理</a></li>
		        <li><a href="{:url('bindeal/binSecDeal')}">回收站管理</a></li>
		        <li><a href="{:url('advdeal/advdeal')}">广告管理</a></li>
		        <li><a href="{:url('advdeal/boxdeal')}">轮播图管理</a></li>
		        <li><a href="{:url('admin/apa')}">修改密码</a></li>
		        <li><a href="{:url('admin/alogout')}">注销</a></li>
		        <li><a href="{:url('O_forum/O/forum')}">论坛前台</a></li>
				<li style="color: #FFFFFF80;">欢迎您： {:session('uNickB')}</li>
			</div>
			</div>
		<!-- O组1903010227内容区域 -->
		<div id="advadd_top">

			<span>首页广告管理:
				<button type="button" id="advadd_a">
					<a href="{:url('advdeal/advadd')}">添加广告</a>
				</button>
			</span>
			<form action="">
				<ul>
					<li>
						<input type="text">
						<button type="submit">搜索</button>

					</li>
				</ul>
			</form>
		</div>

		<!-- O组1903010227内容区域 -->
		<div class="advdeal_content">
			<table id="boxdeal_top">
				<tr style="">
					<td>序号</td>
					<td>图片</td>
					<td>标题|发布时间</td>
					<td>文字介绍</td>
					<td>指向地址</td>
					<td>操作</td>
				</tr>
				{volist name='advdeal' id='advdeal'}
				<tr>
					<td>{$key+1}</td>
					<td>
						<img src='__UPLOAD__/{$advdeal.aimg}' id="boxdeal_img">
					</td>
					<td>{$advdeal.atitle}
						<br>{$advdeal.atime| date="Y-m-d H:i:s"}
					</td>
					<td>{$advdeal.acontent}</td>
					<td d="box_td_addr">
						<a href="{$advdeal.apath}">{$advdeal.apath}</a>
					</td>
					<td id="box_td_cz">
						<a href="{:url('advdeal/advinfo',['aid'=>$advdeal.aid])}">修改 </a>
						<span>|</span>
						{if $advdeal.acheck==0}
						<a href="{:url('advdeal/advok',['aid'=>$advdeal.aid])}">
							<span>审核通过</span>
							<span style="color: red;">（待审核） </span>
						</a>
						<span>|</span>
						{elseif $advdeal.acheck==1 and $advdeal.astop==0/}
						<a href="{:url('advdeal/advok',['aid'=>$advdeal.aid])}" style="color: red;">审核通过
						</a><span>|</span>
						{else/}
						<a href="{:url('advdeal/advok',['aid'=>$advdeal.aid])}" style="color: black;">审核通过
						</a><span>|</span>
						{/if}
						{if $advdeal.astop==0 or $advdeal.acheck==0}
						<a href="{:url('advdeal/advstop',['aid'=>$advdeal.aid])}" style="color: black;">暂停使用
						</a><span>|</span>
						{elseif $advdeal.astop==1}
						<a href="{:url('advdeal/advstop',['aid'=>$advdeal.aid])}" style="color: red;">暂停使用
						</a><span>|</span>
						{/if}
						<a href="#"
							onclick="if(confirm('确认要删除吗?')) location='{:url('advdeal/advdel',['aid'=>$advdeal.aid])}'">删除</a>
					</td>

				</tr>
				{/volist}


			</table>

		</div>

	</body>
</html>
